<html>
<head><meta charset="utf-8"><title>AssertInfo in PanicInfo · project-error-handling · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/index.html">project-error-handling</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/AssertInfo.20in.20PanicInfo.html">AssertInfo in PanicInfo</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216528611"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257204-project-error-handling/topic/AssertInfo%20in%20PanicInfo/near/216528611" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/257204-project-error-handling/topic/AssertInfo.20in.20PanicInfo.html#216528611">(Nov 12 2020 at 21:06)</a>:</h4>
<p>Here's the PR that I mentioned was in progress in the last meeting: <a href="https://github.com/rust-lang/rust/pull/79001">https://github.com/rust-lang/rust/pull/79001</a></p>
<p>It adds information about an assert into the PanicInfo, such that it can be formatted more nicely by e.g. the <code>test</code> crate's panic handler. This doesn't modify <code>assert!()</code> (yet), but it should also help with allowing nice formatting and colors for that macro once it gets a more advanced implementation.</p>
<p>Haven't reviewed it yet, but it looks promising.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>